import http from './http'
import mitt from './mitt'

const models = {
	http,
    mitt
}


const utils = {
	install(app) {
        for (let key of Object.keys(models)) {
            const element = models[key].init()
            for (let index of Object.keys(element)) {
                // uni[`$${index}`] = element[index]
                app.config.globalProperties[`${index}`] = element[index]
            }
    
        }
    }
};

export default utils